package com.ruoyi.warehouse.service.impl;

import com.ruoyi.warehouse.domain.*;
import com.ruoyi.warehouse.mapper.CpkcMapper;
import com.ruoyi.warehouse.service.CpkcService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class CpkcServiceImpl implements CpkcService {
    @Resource
    private CpkcMapper cpkcMapper;

    @Override
    public List<CpkcFnishedProductInventory> selectCpkcList(CpProduct cpProduct) {
        return cpkcMapper.selectCpkcList(cpProduct);
    }

    @Override
    public List<FhslQuantityShipped> consumeList(String[] cpCodes) {
        return cpkcMapper.consumeList(cpCodes);
    }

    @Override
    public List<CprkProductStorageForm> increaseList(String[] cpCodes) {
        return cpkcMapper.increaseList(cpCodes);
    }

    @Override
    public List<CpkcFnishedProductInventory> inventoryList(String[] cpCodes) {
        return cpkcMapper.inventoryList(cpCodes);
    }
}
